//
//  GeneralDefinition.h
//  ZYTools
//
//  Created by ZhàoYǒng on 06/11/2017.
//  Copyright © 2017 ZhàoYǒng. All rights reserved.
//

#define ISONIPAD    [[UIDevice currentDevice].model rangeOfString:@"iPad"].location != NSNotFound

#define IOS_VERSION_FLOAT UIDevice.currentDevice.systemVersion.floatValue
#define IOS_8_OR_ABOVE  ((IOS_VERSION_FLOAT >= 8.0)  ? (YES):(NO))
#define IOS_9_OR_ABOVE  ((IOS_VERSION_FLOAT >= 9.0)  ? (YES):(NO))
#define IOS_10_OR_ABOVE ((IOS_VERSION_FLOAT >= 10.0) ? (YES):(NO))
#define IOS_11_OR_ABOVE ((IOS_VERSION_FLOAT >= 11.0) ? (YES):(NO))
#define IOS_12_OR_ABOVE ((IOS_VERSION_FLOAT >= 12.0) ? (YES):(NO))

#define SCREENWIDTH          ([[UIScreen mainScreen] bounds].size.width)
#define SCREENHEIGHT         ([[UIScreen mainScreen] bounds].size.height)

#define WeakSelf (__weak typeof(self) weakSelf = self);
#define StrongSelf (__strong typeof(self) strongSelf = weakSelf);
